package com.secsys.action.finance;

import java.util.ArrayList;
import java.util.List;

import com.secsys.action.BaseAction;
import com.secsys.dto.AssistDto;
import com.secsys.dto.StoRationedsharesDTO;
import com.secsys.dto.StoStockDTO;
import com.secsys.model.TbStoRationedshares;
import com.secsys.service.StoRationedSharesService;
import com.secsys.service.StoStockService;

/**
 * 对应表TbStoFinanceprofit“配股表”相关数据的action
 * <pre>
 * 1.处理功能（财务分析里面的）:
 * (1).分红扩股：prepareRationedShares、searchRationedShares、rationedSharesDetail、dRationedSharesSearch分别为默认处理、用户搜索、详细信息、内部协助函数。
 *@作者 tiger.hu.tiger@gmail.com
 *@创建日期 2011-5-8
 *@版本1.0
 */
public class RationedSharesAction extends BaseAction<TbStoRationedshares> {

	private static final long serialVersionUID = 1L;
	private TbStoRationedshares tbStoRationedshares;
	
	/**
	 * 规定分页大小为10
	 */
	private final int limit=10; 
	private List<StoStockDTO> stockDTOList;
	private AssistDto assistDto;
	private StoStockDTO stockDTO;
	private StoStockService stoStockService;
	
	private StoRationedSharesService stoRationedSharesService;
	private List<StoRationedsharesDTO> stoRationedsharesDTOList;
	private List<StoRationedsharesDTO> oldYearStoRationedsharesDTOList;
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	@Override
	public TbStoRationedshares getModel() {
		if (this.tbStoRationedshares==null) {
			this.tbStoRationedshares=new TbStoRationedshares();
		}
		return this.tbStoRationedshares;
	}
	public RationedSharesAction(){
		if (this.stockDTOList==null) {
			this.stockDTOList=new ArrayList<StoStockDTO>();
		}
		if (this.assistDto==null) {
			this.assistDto=new AssistDto();
		}
		if (this.stockDTO==null) {
			this.stockDTO=new StoStockDTO();
		}
	}
	public TbStoRationedshares getTbStoRationedshares() {
		return tbStoRationedshares;
	}
	public void setTbStoRationedshares(TbStoRationedshares tbStoRationedshares) {
		this.tbStoRationedshares = tbStoRationedshares;
	}
	public List<StoStockDTO> getStockDTOList() {
		return stockDTOList;
	}
	public void setStockDTOList(List<StoStockDTO> stockDTOList) {
		this.stockDTOList = stockDTOList;
	}
	public AssistDto getAssistDto() {
		return assistDto;
	}
	public void setAssistDto(AssistDto assistDto) {
		this.assistDto = assistDto;
	}
	public StoStockDTO getStockDTO() {
		return stockDTO;
	}
	public void setStockDTO(StoStockDTO stockDTO) {
		this.stockDTO = stockDTO;
	}
	public StoStockService getStoStockService() {
		return stoStockService;
	}
	public void setStoStockService(StoStockService stoStockService) {
		this.stoStockService = stoStockService;
	}
	public StoRationedSharesService getStoRationedSharesService() {
		return stoRationedSharesService;
	}
	public void setStoRationedSharesService(
			StoRationedSharesService stoRationedSharesService) {
		this.stoRationedSharesService = stoRationedSharesService;
	}
	public List<StoRationedsharesDTO> getStoRationedsharesDTOList() {
		return stoRationedsharesDTOList;
	}
	public void setStoRationedsharesDTOList(
			List<StoRationedsharesDTO> stoRationedsharesDTOList) {
		this.stoRationedsharesDTOList = stoRationedsharesDTOList;
	}
	public List<StoRationedsharesDTO> getOldYearStoRationedsharesDTOList() {
		return oldYearStoRationedsharesDTOList;
	}
	public void setOldYearStoRationedsharesDTOList(
			List<StoRationedsharesDTO> oldYearStoRationedsharesDTOList) {
		this.oldYearStoRationedsharesDTOList = oldYearStoRationedsharesDTOList;
	}
}
